#include <iostream>

using namespace std;

const int N = 1e5+10;
int n,a[N];
void heap_sort()
{
    
}
int main()
{
    cin >> n;
    for(int i = 0;i < n;i++) cin >> a[i];

    heap_sort();

    for(int i = 0;i < n;i++) cout << a[i] << " ";

    return 0;
}